package com.maiji.cloud.mapper;

import java.util.List;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.maiji.cloud.entities.login.SignInDeployEntity;

@Mapper
public interface SignInDeployMapper extends BaseMapper<SignInDeployEntity> {

	/**
	 * 连续几天签到获得多少积分
	 * @param day
	 * @return
	 */
	SignInDeployEntity selectOneByDay(@Param("day")int day);

	/**
	 * 天数最大的一条数据
	 * @return
	 */
	SignInDeployEntity selectOneByDayMax();

	/**
	 * 获取所有的数据
	 * @return
	 */
	List<SignInDeployEntity> selectAll();
	
}
